package com.mrjy.common.dto;

import java.util.List;

/**
 * 该对象用来传递easyui菜单信息
 *
 */
public class MenuDto implements Comparable<MenuDto> {
	//菜单实体ID
	private String menuid;
	//菜单组件名
	private String component;
	//菜单名称
	private String name;
	//菜单组件路径
	private String path;
	//菜单图标
	private String icon;
	//菜单编号
	private String menuCode;
	//菜单递归
	private List<MenuDto> menus;

	/**
	 * 实现按menuCode排序
	 */
	@Override
	public int compareTo(MenuDto anotherMenuDto) {
		return this.menuCode.compareToIgnoreCase(anotherMenuDto.getMenuCode());
	}

	public String getMenuid() {
		return menuid;
	}

	public void setMenuid(String menuid) {
		this.menuid = menuid;
	}

	public String getMenuCode() {
		return menuCode;
	}

	public void setMenuCode(String menuCode) {
		this.menuCode = menuCode;
	}

	public MenuDto() {
		super();
		// TODO Auto-generated constructor stub
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	

	public String getComponent() {
		return component;
	}

	public void setComponent(String component) {
		this.component = component;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public List<MenuDto> getMenus() {
		return menus;
	}

	public void setMenus(List<MenuDto> menus) {
		this.menus = menus;
	}
}
